package org.msn.server.database.impl;

import io.netty.channel.ChannelHandlerContext;
import org.msn.config.RoomInfo;
import org.msn.server.database.CreateDatabaseLink;
import org.msn.server.database.Repository;

import java.util.List;
import java.util.Map;

public class RedisRepositoryImpl extends CreateDatabaseLink<Object> implements Repository {
    public RedisRepositoryImpl(String type, Map<String, Object> info) {
        super(type, info);
    }

    @Override
    protected Object createDatabaseLink(Map<String, Object> info) {
        return null;
    }

    @Override
    public List<ChannelHandlerContext> getAllRoomUser(String roomName) {
        return null;
    }

    @Override
    public List<RoomInfo> getAllRoom() {
        return null;
    }

    @Override
    public boolean addRoomInfo(RoomInfo roomInfo) {
        return false;
    }

    @Override
    public boolean addUserToRoom(ChannelHandlerContext ctx, String username, String name) {
        return false;
    }

    @Override
    public RoomInfo getRoomByName(String roomName) {
        return null;
    }

    @Override
    public Integer getRoomAllUserByName(String roomName) {
        return null;
    }

    @Override
    public boolean removeUserFromRoom(String roomName, ChannelHandlerContext ctx) {
        return false;
    }

    @Override
    public boolean removeRoomByName(String roomName) {
        return false;
    }

    @Override
    public List<ChannelHandlerContext> getRoomAllUserIPByName(String name) {
        return null;
    }

    @Override
    public List<String> getAllRoomName() {
        return null;
    }
}
